package com.example.demo.service;

import com.example.demo.entity.Account;
import com.example.demo.entity.Company;

import java.util.List;

public interface AccountService {

    int createAccount(Account account);

    int deleteAccount(Integer id);

    Account findAccountByUsername(String username);

    Account findAccountById(Integer id);

    int updateAccount(Account account);

    List<Account> findAllAccounts();

    boolean validateAccount(String username, String password);

    Account login(String username, String password);
}
